package com.nursinghome.admin.mapper;

import com.nursinghome.annotation.Page;
import com.nursinghome.bean.Room;

import java.util.List;

public interface RoomMapper {
    @Page
    //查询所有的房间
    List<Room> selectAll(Room room);
    //根据rid查询所有的房间
    Room selectByRid(Integer rid);
    //根据rno查询所有的房间
    Room selectByRno(String rno);
    //新建房间
    Integer insert(Room room);
    //修改
    Integer update(Room room);
    //根据id修改房间状态
    void updateIn(Integer rid);
    void updateOut(Integer rid);
    //删除房间
    Integer delete(Integer rid);
}
